<{include file="header.html"}>
<{include file="top.html"}>
<div class="h_980 clearfix">    
            <div class="FosfMain">
            <div class="page_dh"><a class="location-home" href="<{spUrl c=main a=index}>"></a> <a href="<{spUrl c=main a=Account}>"><{T w='My Account'}></a> <{T w='NavigationJGF'}> <{$title}></div>
            <div id="addressBookProcessDefault">          
            <h1 id="addressBookProcessDefaultHeading"><{T w='Update Address Book Entry'}></h1>
            <br />
                    <script type="text/javascript">
                    $(function(){
                    $(".registerform:last").Validform({
                    		tiptype:2,
                    		ajaxPost:true,
                    		callback:function(data){
                    			if(data.status==2){
                                        location.href="<{spUrl c=main a=AddressBook}>";
                    			}
                    		} 
                    	});
                    });
                    </script>

                 <form class="registerform" action="<{spUrl c=main a=AddressBookProcess}>">
                    <input type="hidden" name="action" value="process" /><input type="hidden" name="email_pref_html" value="email_format" /> 
                    <table width="100%" class="Fosftable">
                    	<tr>
                        	<td width="150"><label for="firstname" ><{T w='First Name'}>:</label></td>
                            <td width="280">
                                <input type="text" id="firstname" value="<{$add.customers_firstname}>" maxlength="32" size="33" name="firstname" class="Fosfinput" datatype="*2-30" errormsg="<{T w='Is your first name correct? Our system requires a minimum of 2 characters. Please try again.'}>" nullmsg="<{T w='Is your first name correct? Our system requires a minimum of 2 characters. Please try again.'}>"/>
                            </td><td><span class="alert Validform_checktip">*</span></td>
                        </tr>
                        <tr>
                        	<td><label for="lastname" ><{T w='Last Name'}>:</label></td>
                            <td>
                                <input type="text" id="lastname" value="<{$add.customers_lastname}>" maxlength="32" size="33" name="lastname" class="Fosfinput" datatype="*2-30" errormsg="<{T w='Is your last name correct? Our system requires a minimum of 2 characters. Please try again.'}>" nullmsg="<{T w='Is your last name correct? Our system requires a minimum of 2 characters. Please try again.'}>"/>
                                </td><td><span class="alert Validform_checktip">*</span></td>
                        </tr>
                        <tr>
                        	<td><label for="street-address" ><{T w='Street Address'}>:</label></td>
                            <td>
                                <input type="text" id="street-address" value="<{$add.entry_street_address}>" maxlength="64" size="41" name="street_address" class="Fosfinput" datatype="*5-30" errormsg="<{T w='Your Street Address must contain a minimum of 5 characters.'}>" nullmsg="<{T w='Your Street Address must contain a minimum of 5 characters.'}>"/>
                                </td><td><span class="alert Validform_checktip">*</span></td>
                        </tr>
                        <tr>
                        	<td><label for="suburb" ><{T w='Address Line 2'}>:</label></td>
                            <td>
                                <input type="text" id="suburb" value="<{$add.entry_suburb}>" maxlength="32" size="33" name="suburb" class="Fosfinput"/>
                            </td>
                        </tr>
                        <tr>
                        	<td><label for="city" ><{T w='City'}>:</label></td>
                            <td>
                                <input type="text" id="city" value="<{$add.entry_city}>" maxlength="32" size="33" name="city" class="Fosfinput" datatype="*2-20" errormsg="<{T w='Your City must contain a minimum of 2 characters.'}>" nullmsg="<{T w='Your City must contain a minimum of 2 characters.'}>"/>
                                </td><td><span class="alert Validform_checktip">*</span></td>
                        </tr>
                        <tr>
                        	<td><label id="stateLabel" for="state" ><{T w='State/Province'}>:</label></td>
                            <td>
                                <input type="text" id="state" value="<{$add.entry_state}>" maxlength="32" size="33" value="" name="state" class="Fosfinput" datatype="*2-20" errormsg="<{T w='Your State/Province must contain a minimum of 2 characters'}>" nullmsg="<{T w='Your State/Province must contain a minimum of 2 characters'}>"/>&nbsp;

                                </td><td><span class="alert Validform_checktip">*</span></td>
                        </tr>
                        <tr>
                        	<td><label for="postcode" ><{T w='Post/Zip Code'}>:</label></td>
                            <td>
                                <input type="text" value="<{$add.entry_postcode}>" id="postcode" maxlength="10" size="11" name="postcode" class="Fosfinput" datatype="*4-20" errormsg="<{T w='Your Post/ZIP Code must contain a minimum of 4 characters.'}>" nullmsg="<{T w='Your Post/ZIP Code must contain a minimum of 4 characters.'}>"/>
                                </td><td><span class="alert Validform_checktip">*</span></td>
                        </tr>
                        <tr>
                        	<td><label for="country" ><{T w='Country'}>:</label></td>
                            <td>
                                 <select name="zone_country_id" id="country" datatype="*" errormsg="<{T w='You must select a country from the Countries pull down menu.'}>">
                                  <option value=""><{T w='Please Choose Your Country'}></option>
                                    <{foreach item=item key=key from=$countries}>
                                    <option value="<{$item.countries_id}>"<{if $item.countries_id eq $add.entry_country_id}> selected="selected"<{/if}>><{$item.countries_name}></option>
                                    <{/foreach}>
                                </select>
                                </td><td><span class="alert Validform_checktip">*</span></td>
                        </tr>
                        <tr>
                        	<td><label  for="telephone"><{T w='Telephone'}>:</label></td>
                            <td>
                                <input id="telephone" type="text" value="<{$add.customers_telephone}>" maxlength="32" size="33" name="telephone" class="Fosfinput" datatype="*3-20" nullmsg="<{T w='Your Telephone Number must contain a minimum of 3 characters.'}>" errormsg="<{T w='Your Telephone Number must contain a minimum of 3 characters.'}>"/>
                                </td><td><span class="alert Validform_checktip">*</span></td>
                        </tr>
                        <tr><td colspan="3"><input type="checkbox" name="primary" value="on" id="primary" <{if $user.customers_default_address_id eq $add.address_book_id}> checked="checked"<{/if}>/> <label class="checkboxLabel" for="primary"><{T w='Set as Primary Address'}></label></td></tr>
                    </table>
                    <br class="clear" />
                    <div class="buttonRow forward"><input type="hidden" name="action" value="<{$action}>" /><input type="hidden" name="edit" value="<{$add.address_book_id}>" /><input type="image" src="<{$smarty.const.BASEPATH}>/css/img/button_update.gif" alt="<{T w='Update'}>" title=" <{T w='Update'}> " /></div>
                    <div class="buttonRow back"><a href="<{spUrl c=main a=AddressBook}>"><img src="<{$smarty.const.BASEPATH}>/css/img/button_back.gif" alt="<{T w='Back'}>" title=" <{T w='Back'}> " /></a></div>
               	    
                </form>
            </div>
    </div>
    
</div>  
<{include file="footer.html"}>
</body>
</html>